<?php
	class SuperUser extends User implements ISuperUser{
		public static $superUserCount = 0;
		public $role;

		function __construct($name, $login, $password, $role) {
			parent::__construct($name, $login, $password);
			$this->role = $role;
			++self::$superUserCount;
		}

		function show_info() {
			echo "Role: {$this->role} <br />";
			parent::show_info();
		}
		function getInfo() {
			$res = array();

			foreach($this as $k => $v)
				$res[$k] = $v;
			return $res;

			// return (array) $this;
		}
	}
?>